/** 清除内外边距 **/
body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, /* structural elements 结构元素 */
dl, dt, dd, ul, ol, li, /* list elements 列表元素 */
pre, /* text formatting elements 文本格式元素 */
form, fieldset, legend, button, input, textarea, /* form elements 表单元素 */
th, td /* table elements 表格元素 */ {margin: 0;padding: 0;}

/** 设置默认字体 **/
body{font: .14rem/1.5 "Microsoft YaHei","微软雅黑", arial, sans-serif,"Angsana New";}
h1, h2, h3, h4, h5, h6 {font-weight:normal;}
address, cite, dfn, em, var { font-style: normal; } /* 将斜体扶正 */
code, kbd, pre, samp { font-family: courier new, courier, monospace; } /* 统一等宽字体 */
em{font-weight:bold;}

/** 重置列表元素 **/
ul,ol{list-style: none;}
html {width: 100%;height: 100%;-webkit-font-smoothing: antialiased;}
/** 重置文本格式元素 **/
a { text-decoration: none; color:inherit;}
a:active,a:visited,a:link,a:hover{text-decoration:none;outline:none;}
a, body{-webkit-tap-highlight-color: rgba(0,0,0,0)}
sup { vertical-align: text-top; } /* 重置，减少对行高的影响 */
sub { vertical-align: text-bottom; }

/** 重置表单元素 **/
fieldset, img { border: 0;outline:none;} /* img 搭车：让链接里的 img 无边框 */
button, input, select, textarea {border:none;outline:none;} /* 使得表单元素在 ie 下能继承字体大小 */
img{width:100%;height:100%;display:block;}

/** 重置表格元素 **/
table { border-collapse: collapse; border-spacing: 0; }

/* 重置 HTML5 元素 */
article, aside, details, figcaption, figure, footer,header, hgroup, menu, nav, section,
summary, time, mark, audio, video {display: block;margin: 0;padding: 0;}
mark { background: #ff0; }
body{background-color:#fff;}
input[type="checkbox"]{cursor:pointer;}
::-webkit-input-placeholder{color:#848484;}
html,body{
  width:100%;
  height:100%;
  margin:0;
  padding:0;
}


nav {
  display:block;
  a{
    display:inline-block;
    text-decoration:none;
    height:1rem;
    padding:0 .5rem;
    margin:.5rem 0;
  }
}
header {
  display: block;
  background-color: #0085e0;
  text-align: center;
  color: white;
  font-size: 20px;
  height: 7%;
  vertical-align: middle;
  position: relative;
  span:nth-of-type(1){
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 45px;
  }
  .rule{
    position: absolute;
    right: .3rem;
    width: .6rem;
    top: .3rem;
  }
}
main {
  display: block;
  width: 100%;
  position:relative;
  top:0;
  left:0;
  right:0;
  bottom:0;
  overflow: scroll;
  background: #fff;
  ::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}
footer {
  width: 100%;
  height:10%;
  background-color:#f5f5f5;
  color:white;

  a{
    display: inline-block;
    float: left;
    width:30%;
    height: 100%;
    line-height: 50px;
    text-align: center;
    color: #333;
    &:nth-of-type(2){
      margin: 0 5%;
    }
    p{
      width: 100%;
      height: 70%;
      img{
        width: 50%;
        margin: 0 auto;
      }
    }
    span{
      width: 100%;
      height: 30%;
      display: block;
      text-align: center;
      line-height: 22px;
    }
  }
}
